<!--
 * @Description: 
 * @Autor: 商晓彬
 * @Date: 2021-12-01 10:45:52
 * @LastEditors: 商晓彬
 * @LastEditTime: 2021-12-02 17:04:02
-->
<div class="matching" id="main">
    <!-- 头 -->
    <div class="title">
        <div (click)="full()" class="font-title"></div>
    </div>
    <!-- 身 -->
    <div class="bord-body">
        <!-- 左 -->
        <div class="b-left">
            <div class="left-item">
                <div class="left-title">总体配套信息</div>
                <div class="left-body">
                    <div class="inner">
                        <div class="inner-title">零件总数</div>
                        <div class="inner-text text-blue">{{topForm.quantity}}</div>
                        <div class="inner-title">零件配套</div>
                        <div class="inner-text">
                            <span class="text-blue">{{topForm.suiteQuantity}}</span>
                            <span class="text-green" style="margin-left: 10px;">{{topForm.suitePercent}}%</span>
                        </div>
                    </div>
                    <div class="inner">
                        <div class="inner-title">零件预配套</div>
                        <div class="inner-text">
                            <span class="text-blue">{{topForm.preSuiteQuantity}}</span>
                            <span class="text-green" style="margin-left: 10px;">{{topForm.preSuitePercent}}%</span>
                        </div>
                        <div class="inner-title">零件出库</div>
                        <div class="inner-text">
                            <span class="text-blue">{{topForm.outboundQuantity}}</span>
                            <span class="text-green" style="margin-left: 10px;">{{topForm.outboundPercent}}%</span>
                        </div>
                    </div>
                </div>
            </div>
            <div class="left-item">
                <div class="change-title">{{selectForm.title}}配套信息</div>
                <div class="left-body">
                    <div class="inner">
                        <div class="inner-title">零件总数</div>
                        <div class="inner-text text-blue">{{selectForm.quantity}}</div>
                        <div class="inner-title" style="cursor: pointer;" (click)="openMathing()">零件配套</div>
                        <div class="inner-text">
                            <span class="text-blue">{{selectForm.suiteQuantity}}</span>
                            <span class="text-green" style="margin-left: 10px;">{{selectForm.suitePercent}}%</span>
                        </div>
                    </div>
                    <div class="inner">
                        <div class="inner-title" style="cursor: pointer;" (click)="openPreMathing()">零件预配套</div>
                        <div class="inner-text">
                            <span class="text-blue">{{selectForm.preSuiteQuantity}}</span>
                            <span class="text-green" style="margin-left: 10px;">{{selectForm.preSuitePercent}}%</span>
                        </div>
                        <div class="inner-title">零件出库</div>
                        <div class="inner-text">
                            <span class="text-blue">{{selectForm.outboundQuantity}}</span>
                            <span class="text-green" style="margin-left: 10px;">{{selectForm.outboundPercent}}%</span>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 火箭图 -->
        <div class="b-mid">
            <div style="height: 100%;width: 25%;"></div>
            <div class="mid-border">
                <div [class]="rockName"></div>
            </div>
        </div>
        <!-- 型号切换 -->
        <div class="b-right">
            <div class="top1">
                <div class="right-title">型号切换</div>
            </div>
            <div class="right-select">
                <p-dropdown name="model" emptyFilterMessage="暂无数据" [options]="modelOptions" [(ngModel)]="model"
                    [style]="{'width':'170px','float': 'right'}" (onChange)="onchange($event)">
                </p-dropdown>
            </div>
            <div class="right-body">
                <div [class]="item.isUsed == 1? 'selct-body' : 'unSelect-body' "
                    *ngFor="let item of selectData;let index=index" (click)="getLeftDown(item,index)">
                    <span
                        [class]="item.isUsed == 1? 'select-text text-body' : 'unSelect-text text-body'">{{item.name}}</span>
                    <span
                        [class]="item.isUsed == 1? 'select-text num-body' : 'unSelect-text num-body'">{{item.suitePercent}}%</span>
                </div>
            </div>
        </div>
    </div>
    <!-- 底 -->
    <div class="bord-bottom"></div>
    <!-- 预配套弹窗 -->
    <app-matching-inner #MatchingInnerComponent [editData]="selectForm"></app-matching-inner>
    <!-- 配套弹窗 -->
    <app-matching-sum #MatchingSumComponent [editData]="selectForm"></app-matching-sum>
</div>